/**
 * Created by DevilsEyes on 2016/4/17.
 */
'use strict';

var Admin_user = require('../midware/admin/user');

Admin_user
    .clear()
    .then(()=> {
        [
            //普通的学生用户
            {
                id: '1',
                name: '苏果将',
                class: 'A',
                nickname: 'A班学号1密码1',
                password: '1',
                role: 1,
                email: 'inahoo.m@qq.com'
            },
            //普通的学生用户
            {
                id: '2',
                name: 'B班学号2密码2',
                class: 'B',
                nickname: '酷倍达',
                password: '2',
                role: 1,
                email: 'inahoo.m@qq.com'
            },
            //普通的学生用户
            {
                id: '2023987652',
                name: '雷毅勇',
                class: 'B',
                nickname: '毅毅毅毅',
                password: '123456',
                role: 1,
                email: 'inahoo.m@qq.com'
            },
            //普通的学生用户
            {
                id: '2023986762',
                name: '志妙',
                class: 'A',
                nickname: '妙妙妙',
                password: '123456',
                role: 1,
                email: 'inahoo.m@qq.com'
            },
            //管理员
            {
                id: 'admin',
                name: 'admin',
                class: '管理员要什么班级?',
                nickname: 'admin',
                password: 'admin',
                role: 9999,
                email: 'inahoo.m@qq.com'
            },
            //未通过审核的账户
            {
                id: '222284452',
                name: '阿布基地_未通过',
                class: 'A',
                nickname: 'admagqegin',
                password: '',
                role: -2,
                email: 'inahoo.m@qq.com'
            },
            //未通过审核的账户
            {
                id: '22845222',
                class: 'B',
                name: '四季豆_未通过',
                nickname: 'sbsd',
                password: '',
                role: -2,
                email: 'inahoo.m@qq.com'
            },
            //已通过审核但是未验证的账户
            {
                id: '1148338111',
                class: 'B',
                name: '一个已通过审核但是未验证的账户',
                nickname: 'admin',
                password: '',
                role: -1,
                email: 'inahoo.m@qq.com'
            }
        ].forEach(function (v) {
            Admin_user.force_creat(v);
        });
    });

module.exports = {};